<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        table{
            border-collapse: collapse;
        }
        td{
            width: 50px;
            height: 50px;
            text-align: center;
        }

    </style>
</head>
<body>
    <!-- 表格的语法 -->
    <!-- table
            tr 
                <td></td>
                <td></td>
                <td></td>
                <td></td>
            tr
    -->

    <table border="1">
        <tr>
            <td>编号</td>
            <td>姓名</td>
            <td colspan="2" >人员信息</td>
            <!-- <td>性别</td> -->
        </tr>
        <tr>
            <td>1</td>
            <td>薛士雄</td>
            <td>30</td>
            <td>男</td>
        </tr>
        <tr>
            <td>2</td>
            <td>叶雯</td>
            <td>18</td>
            <td>女</td>
        </tr>
        <tr>
            <td rowspan="2">3</td>
            <td>孙香芋</td>
            <td>30</td>
            <td>男</td>
        </tr>
        <tr>
            <!-- <td>4</td> -->
            <td>疏高宁</td>
            <td>30</td>
            <td>女</td>
        </tr>
    </table>

    <table border="1">
        <tr>
            <td style="background-color: red;" rowspan="2"></td>
            <td></td>
            <td style="background-color: green;" colspan="2"></td>
        </tr>
        <tr>
            <td style="background-color: blue;" rowspan="2"></td>
            <td style="background-color: yellow;" rowspan="2"></td>
            <td></td>
        </tr>
        <tr>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td></td>
            <td style="background-color: pink;" colspan="3"></td>
        </tr>
    </table>

</body>
</html>